package com.khong.baodizhen.activity;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebView;
import android.widget.Button;

import com.khong.baodizhen.R;

public class DBZCompanyPapersDetailActivity extends Activity implements
		OnClickListener {

	private Button backBtn, jfenBtn, qzhangBtn, dyingBtn;
	private WebView web;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.dbz_start_papers_detail);

		initView();
		fillData();
	}

	public void initView() {
		backBtn = (Button) findViewById(R.id.btn_back);
		jfenBtn = (Button) findViewById(R.id.btn_double);
		qzhangBtn = (Button) findViewById(R.id.btn_qzhang);
		dyingBtn = (Button) findViewById(R.id.btn_daying);
		web = (WebView) findViewById(R.id.web);
	}

	public void fillData() {
		backBtn.setOnClickListener(this);
		jfenBtn.setOnClickListener(this);
		qzhangBtn.setOnClickListener(this);
		dyingBtn.setOnClickListener(this);
		
		web.loadUrl("file:///android_asset/jcjg.html");
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.btn_back:
			finish();
			break;
		case R.id.btn_double:
			break;
		case R.id.btn_qzhang:
			break;
		case R.id.btn_daying:
			break;
		default:
			break;
		}

	}

}
